# Contributor: Bart Ribbers <bribbers@disroot.org>
# Contributor: Danct12 <danct12@disroot.org>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=squeekboard
pkgver=1.19.0
pkgrel=0
pkgdesc="The final Phosh keyboard"
arch="all !s390x !ppc64le !riscv64" # Blocked by rust, fails to build on ppc64le
url="https://gitlab.gnome.org/World/Phosh/squeekboard"
license="GPL-3.0-or-later"
makedepends="meson ninja rust cargo bash glib-dev wayland-protocols wayland-dev
	gtk+3.0-dev gnome-desktop-dev feedbackd-dev"
checkdepends="xvfb-run"
options="net"
source="https://gitlab.gnome.org/World/Phosh/squeekboard/-/archive/v$pkgver/squeekboard-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	xvfb-run meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
sha512sums="
5b1de7a37af30f030aba19d6d3ca743db2cbb3488d77e1c90cb21382c9aa5cc6728efd8f5ffcc91d6bbb9ba7cdb7720b7ec16348ae821ae6bde5eacac3892dac  squeekboard-v1.19.0.tar.gz
"
